package com.woniu.new_orange.personnel_model_wu.service;

import com.woniu.new_orange.entity.User;
import com.woniu.new_orange.personnel_model_wu.Dto.UserDto;

/**
 * @Program: new_orange->UserService
 * @Description: 用户service
 * @Author: donghang
 * @Date: 2023-01-14 09:48
 * @Version： 1.0
 **/
public interface UserService {

    //  董航  2023/2/3 14:49  账号登录
    User userLogin(UserDto userDto);

    //  董航  2023/2/3 14:49  邮箱登录
    User loginByEmail(UserDto userDto);

    //  董航  2023/2/3 14:49  手机登录
    User loginByPhone(UserDto userDto);

    //  董航  2023/2/6 15:55  通过手机获得user对象
    User loginBySms(String userPhone);

    int deleteByPrimaryKey(Long id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

}
